<!DOCTYPE html>
<html>
<head>
<?php $this->load->view('head'); ?>
</head>
<body>
<?php $this->load->view('header'); ?>
<div class="container-fluid main">
	<div class="row">
<?php $this->load->view('left'); ?>
		<div class="main-content col-md-10">
<?php $this->load->view('crumbs'); ?>
			<div class="panel panel-default panel-my">
				<div class="panel-heading">添加列表</div>
				<div class="panel-body">
					<form class="form-horizontal J-ajax-form" action="<?php echo site_url('admin/link/edit'); ?>" method="post" accept-charset="utf-8" role="form">
						<input type="hidden" name="link_id" value="<?php echo $link['link_id']; ?>">
						<div class="form-group">
                            <label for="name" class="col-md-2 control-label">
                                站点名称
                            </label>
                            <div class="col-md-10">
                                <input type="text" class="form-control" id="name" name="name" value="<?php echo $link['name']; ?>">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="url" class="col-md-2 control-label">
                                站点地址
                            </label>
                            <div class="col-md-10">
                                <input type="text" class="form-control" id="url" name="url" value="<?php echo $link['url']; ?>" placeholder="http://">
                            </div>
                        </div>
						<div class="form-group">
                            <label for="logo" class="col-md-2 control-label">
                                站点LOGO
                            </label>
                            <div class="col-md-10">
                                <input type="text" class="form-control" id="logo" name="logo" value="<?php echo $link['logo']; ?>" placeholder="http://">
                            </div>
                        </div>
						<div class="form-group">
                            <label for="descrip" class="col-md-2 control-label">
                                站点描述
                            </label>
                            <div class="col-md-10">
                                <input type="text" class="form-control" id="descrip" name="descrip" value="<?php echo $link['descrip']; ?>">
                            </div>
                        </div>
						<div class="form-group">
                            <label for="contact" class="col-md-2 control-label">
                                联系方式
                            </label>
                            <div class="col-md-10">
                                <input type="text" class="form-control" id="contact" name="contact" value="<?php echo $link['contact']; ?>">
                            </div>
                        </div>
						<div class="form-group">
                            <label for="vieworder" class="col-md-2 control-label">
                                显示顺序
                            </label>
                            <div class="col-md-10">
                                <input type="number" class="form-control" id="vieworder" name="vieworder" value="<?php echo $link['vieworder']; ?>">
                            </div>
                        </div>
						<div class="form-group">
							<label class="col-md-2 control-label">
                                是否开启
                            </label>
							<div class="col-md-10 checkbox">
                                <label><input type="checkbox" name="status"<?php echo Utility::if_check($link['status']); ?>>开启</label>
                            </div>
                        </div>
						<div class="form-group">
							<div class="col-md-offset-2 col-md-10">
                                <div class="btn-wrap">
									<button type="button" class="btn btn-primary J-ajax-submit-btn mr5">确认提交</button>
								</div>
                            </div>
                        </div>
					</form>
				</div>
			</div>
			<!--/.panel -->
		</div>
		<!--/.main-content -->
	</div>
	<!--/.row -->
</div>
<!--/.container-fluid -->
<?php $this->load->view('footer'); ?>
</body>
</html>